<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Base extends Controller_Template {

    public $template = 'index/v_base';
    public $categories;


    public function before () {
        parent::before();
        $site_name = Kohana::config('myconf.site_name');
        $site_description = 'Music, guitars, bass';
        
        $top_menu = Request::factory('widgets/sitemenu')->execute();
        
        $this->template->site_name = $site_name;              
        $this->template->site_description = $site_description;
        $this->template->page_title = null;
        $this->template->content = '';
        
        //Styles & Scripts
        $this->template->styles = array('media/css/style.css');        
        $this->template->scripts = array();
        
        $this->template->top_menu = $top_menu;
        
        //Block's
        $this->template->block_left   = null;        
        $this->template->block_center = null;        
        $this->template->block_right  = null;
        
        //$this->template->categories = Model::factory('catalog')->getCategories();
        //$this->template->top_products = Model::factory('catalog')->getTopProducts();
    }    
}
